export function getBeginTimeOfYmd(ymd: string | number): Date {
  if (typeof ymd === 'string') ymd = parseInt(ymd)

  const year = ymd / 10000
  const month = (ymd % 10000) / 100
  const day = ymd % 100
  return new Date(year, month - 1, day)
}
